QT       += core gui network sql printsupport
QT       += multimedia

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
greaterThan(QT_MAJOR_VERSION, 5): QT += core5compat

CONFIG += c++11

QMAKE_LFLAGS += -no-pie

RC_ICONS = log.ico
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
#TARGET      = MD200
#TEMPLATE    = app
#DESTDIR     = $$PWD/../bin
#RC_FILE     = qrc/main.rc

HEADERS     += head.h
SOURCES     += main.cpp
RESOURCES   += qrc/main.qrc
CONFIG      += warn_off
CONFIG      += configfile

TRANSLATIONS += MD200_en.ts\
    MD200_vi.ts\
    MD200_cn.ts
CONFIG += lrelease
CONFIG += embed_translations

INCLUDEPATH += $$PWD
INCLUDEPATH += $$PWD/api
INCLUDEPATH += $$PWD/form
INCLUDEPATH += $$PWD/3rd_qextserialport
INCLUDEPATH += $$PWD/qrcode


include ($$PWD/api/api.pri)
include ($$PWD/form/form.pri)
include ($$PWD/3rd_qextserialport/3rd_qextserialport.pri)
include ($$PWD/qrcode/qrcode.pri)

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
